import React from 'react';

import { SpaceWraperStyle } from '../theme/index.jsx'

function View(props) {

    var { direction = "row", space = 10 } = props;

    return (
        <SpaceWraperStyle className={`direction_${direction}`} direction={direction} space={space}>
            {props.children}
        </SpaceWraperStyle>
    );
}

export default View;